package com.douziit.meilianoa.base.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author lh
 * @date 2019/7/2 10:08
 */
@Data
public class PageRequest {
    private Integer pn;

    private Integer ps;

    private String keyword;

    private Integer role;

    private String name;

    private Integer accountId;

    private Integer customerId;

    private Integer contactId;

    /**
     * 项目id
     */
    private Integer projectId;

    /**
     * 搜索条件开始时间   (统计页面)
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;

    /**
     * 搜索条件结束时间  (统计页面)
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

    private Integer id;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 排序方式
     */
    private Integer orderFlag;

    /**
     * 执行方式id
     */
    private Integer executeTypeId;

    /**
     * 费用id
     */
    private Integer feesId;

    /**
     * 版本id
     */
    private Integer versionId;

    /**
     * 预算\报销标志   0:预算  1:报销
     */
    private Integer reiBugFlag;

    private String budgetReason;

    private String reimbursementReason;

    /**
     * 二级路径
     */
    private  String  secondaryPath;
}


